<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>

<base href="<%=basePath%>"/>
<link rel="stylesheet" type="text/css" href="qiantai/css/global.css" />
<link rel="stylesheet" type="text/css" href="qiantai/css/header.css" />

<title>soda教育</title>
<script type="text/javascript" src="qiantai/js/settab.js"></script>
<script type="text/javascript" src="qiantai/js/banner3.js"></script>
<script type="text/javascript" src="qiantai/js/banner4.js"></script>
<script type="text/javascript">
function dianji(met){

	if (met == "0") {
		var couname = document.getElementById("sel1").value;
	}
	if (met == "1") {
		var couname = document.getElementById("sel2").value;
	}
	if (met== "2") {
		var couname = document.getElementById("sel3").value;
	}
	if (met== "3") {
		var couname = document.getElementById("sel4").value;
		
	}
	
	//top.location.href = "HeaderSousuoServletHan?couname=" + couname + "&met=" + met;
	if (couname=="请输入课程名称" && met== "2") {
		top.location.href = "ShowQianTaiServletYu?meet=MyCourse";
		return;
	}
	
	if (couname=="请输入课程名称" && met== "3") {
		top.location.href = "ShowQianTaiServletYu?meet=weijiesuan";
		return;
	}
	top.location.href = "ShowQianTaiServletYu?couname=" + couname + "&meet=" + met;
}






</script>

</head>

<body>
<!--top begin-->
<div class="top">
 <div class="wrap">
  <span class="fl">欢迎您来到<a href="http://localhost:8080/soda/" title="" target="_top">soda教育网</a></span>
  <span class="fr">
	
  <c:choose>
  	<c:when test="${sessionScope.student==null }">
  	<a href="qiantai/login.jsp" title="" target="_top" >请登录
  	 </a>&nbsp;&nbsp;<a href="qiantai/regist.jsp" title="" target="_top">立即注册</a>
  	</c:when>
  	<c:otherwise>已登录
  	&nbsp;&nbsp;欢迎您：${sessionScope.student.stuLoginname } &nbsp;&nbsp;
  	<a href="qiantai/message.jsp" 
  	
  	title="" target="_top" onclick="return ckiflogin()">个人中心</a>&nbsp;&nbsp;
 	<a href="qiantai/chongzhi.jsp" title="" target="_top" >充 值</a>&nbsp;&nbsp;
  	</c:otherwise>
  </c:choose>
 
  	&nbsp;&nbsp;<a href="<%=request.getContextPath() %>/QianLoginServlet?method=tuichu" title="" target="_top" >安全退出</a></span>
 </div>
</div>
<!--top end-->
<!--header begin-->
<div class="header">
 <div class="wrap">
  <a href="http://localhost:8080/soda/" title="" target="_top"><img src="qiantai/images/ad1.jpg" width="1004" height="40" /></a>
  <div class="search_box">
   <a href="http://localhost:8080/soda/" title="" target="_top"><img src="qiantai/images/logo.jpg" width="389" height="53"  alt="" class="fl"/></a>
   <div class="search">
   
     <div id="lenu1">
       <ul>
         <li class="hover" onmousemove="setTab(1,0)">现场课程<span>|</span></li>
         <li  onmousemove="setTab(1,1)">在线视频<span>|</span></li>
         <li onmousemove="setTab(1,2)">我的课程<span>|</span></li>
         <li onmousemove="setTab(1,3)">未结算</li>
       </ul>
     </div>
     <div class="lain1_box" id="lain1">
       <ul class="block">
        <li><input type="text" id="sel1" value="请输入课程名称" onFocus="if(this.value=='请输入课程名称'){this.value='';}" onBlur="if(this.value==''){this.value='请输入课程名称';}" class="sertxt" /><input type="button" value="搜 索"  onclick="dianji(0)" name=""  class="serbtn"/></li>
       </ul>
       <ul>
        <li><input type="text" id="sel2" value="请输入课程名称" onFocus="if(this.value=='请输入课程名称'){this.value='';}" onBlur="if(this.value==''){this.value='请输入课程名称';}" class="sertxt" /><input type="button" value="搜 索" onclick="dianji(1)" name=""  class="serbtn"/></li>
       </ul>
       <ul>
        <li><input type="text" id="sel3" value="请输入课程名称" onFocus="if(this.value=='请输入课程名称'){this.value='';}" onBlur="if(this.value==''){this.value='请输入课程名称';}" class="sertxt" /><input type="button" value="搜 索" onclick="dianji(2)" name=""  class="serbtn"/></li>
       </ul>
       <ul>
        <li><input type="text" id="sel4" value="请输入课程名称" onFocus="if(this.value=='请输入课程名称'){this.value='';}" onBlur="if(this.value==''){this.value='请输入课程名称';}"  class="sertxt" /><input type="button" value="搜 索" onclick="dianji(3)" name=""  class="serbtn"/></li>
       </ul>
     </div>
   </div>
   <div class="cb"></div>
  </div>
 </div>
 <div class="nav">
  <div class="wrap">
   <ul class="nav_left">
    <li><a href="http://localhost:8080/soda/" title="" target="_top">首 页</a></li>
    <li><a href="ShowQianTaiServletYu?meet=MyCourse" title="" target="_top">我的课程</a></li>
    <li><a href="ShowQianTaiServletYu?meet=weijiesuan" title="" target="_top">未结算课程</a></li>
   </ul>
   <ul class="nav_right">
   </ul>
  </div>
 </div>
</div>
<!--header end-->
</body>
</html>
